package com.butnet.myframe.hql.query;

public class OrderBy {
	private String proName = null;
	private String DESC_ASC = null;
	private String objAsName = null;
	
	public OrderBy() {}
	public OrderBy(String proName, boolean desc) {
		this.proName = proName;
		this.DESC_ASC = desc?"DESC":null;
	}
	
	public String getProName() {
		return proName;
	}
	public void setProName(String proName) {
		this.proName = proName;
	}
	public String getDESC_ASC() {
		return DESC_ASC;
	}
	public void setDESC_ASC(String desc_asc) {
		DESC_ASC = desc_asc;
	}
	public String getObjAsName() {
		return objAsName;
	}
	public void setObjAsName(String objAsName) {
		this.objAsName = objAsName;
	}
	@Override
	public String toString(){
		return (objAsName!=null?objAsName+".":"")+proName+(DESC_ASC!=null?" "+DESC_ASC:"");
	}
}
